import VueRouter from "vue-router";
import Vue from 'vue'
import SellerPage from '../view/SellerPage.vue';
import TrendPage from '../view/TrendPage.vue';
import MapPage from '../view/MapPage.vue';
import RankPage from '../view/RankPage.vue';
import HotPage from '../view/HotPage.vue';
import StockPage from '../view/StockPage.vue';
import ScreenPage from '../view/ScreenPage.vue';
Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/screen'
    },
    {
        path: '/screen',
        component: ScreenPage
    },
    {
        path: '/seller',
        component: SellerPage
    },
    {
        path: '/seller',
        component: SellerPage
    },
    {
        path: '/trend',
        component: TrendPage
    },
    {
        path: '/map',
        component: MapPage
    },
    {
        path: '/rank',
        component: RankPage
    },
    {
        path: '/hot',
        component: HotPage
    },
    {
        path: '/stock',
        component: StockPage
    }
]

const router = new VueRouter({routes})

export default router